<?php
/**
* 这是私信
*/
class ControllerSixin extends GetLoad
{
	

	public function index(){

		$this->load("Model/sixin");

	}
	public function getsixin($name_id){
		$this->index();
		$sixin=new ModelSixin();
		$reluse=$sixin->getsixin($name_id);
		foreach ($reluse as $value) {
			$data[]=array(
				'name1' 	=>$sixin->getname($value['name_id'])["name"], 
				'name2'		=>$sixin->getname($value['name2_id'])["name"],
				'touxiang1'	=>$sixin->getname($value['name_id'])["touxiang"],
				'touxiang2'	=>$sixin->getname($value['name2_id'])["touxiang"],
				'neirong'	=>$value['neirong'],
				'name1_id'  =>$value['name_id'],
				'name2_id'  =>$value['name2_id']
			);
		}



		//var_dump($data);
		$this->view("view/sixin",$data);

	}

	public function sixinbianji($data){

		
		$this->view("view/sixinbianji",$data);
	}
}